package parser

import "vitess.io/vitess/go/vt/sqlparser"

func convertUse(s *sqlparser.Use, query string) (Statement, error) {
	stmt := &UseStatement{
		Target: SQLNodeToString(s.DBName),
	}
	stmt.sql = query
	return stmt, nil
}

type UseStatement struct {
	BaseStatement
	Target string
}
